<%@page import="org.apache.jasper.tagplugins.jstl.core.Redirect"%>

<%


String loggedInUserName = (String)session.getAttribute("userName");

String loggedInUserPassword = (String)session.getAttribute("userPassword");

String loggedInUserRole = (String)session.getAttribute("userRole");
out.print(loggedInUserName);
out.print(loggedInUserPassword);
out.print(loggedInUserRole);

if(loggedInUserName == null || loggedInUserPassword == null || loggedInUserRole == null)
{

response.sendRedirect("login1.jsp?error= Wrong Username or Password");

}
/*
out.print(loggedInUserName);
out.print(loggedInUserPassword);
out.print(loggedInUserRole);
*/

%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Admin</title>
<link href="yellow-effectz.css" rel="stylesheet" type="text/css" />

<script type="text/javascript">
var selSRS;
var selCHK;
var chInsp;
var chMod;
var firstTimeCalledSelCHK = 0;
 
function changeContentSRS(ids)
{
   // selSRS = document.getElementById(ids).innerHTML;
 // alert(selSRS);
 // selSRS = document.getElementById(ids).innerHTML;


var e = document.getElementById("dd1");
var text = e.options[e.selectedIndex].text;
var id = e.options[e.selectedIndex].id;
document.getElementById("hsrs_text").value=text;
document.getElementById("hsrs_id").value=id;
//alert(id);
 document.getElementById(ids).innerHTML  =  "<h2 class=\"welcome\">Select/import Check List</h2><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td height=\"1\" bgcolor=\"#CCCCCC\"><!--input type=\"text\" name=\"selectSRS\"/--><input type=\"file\" id=\"dir1\" value=\"browse\" /><input type=\"button\" value=\"Import\"  onclick=\"import_checklist()\"  />or              <div id=\"dd2\" style=\"display: inline\">              <select   id=\"dd1\">                  <option>Select Check List</option>              </select>              </div>              <input type=\"button\" value=\"Done\" onclick=\"changeContentCHK('defineInspectionProcess')\"   style=\"  width: 57px;    color: whitesmoke;    background-color: maroon;    font-family: tahoma;    font-size:  18px;    margin-top: 100px;    margin-left: 400px;\"></input>              </td>            </tr>          </table>";
 // alert(document.getElementById(ids).innerHTML);
 getCheckList();
 document.getElementById('bg11').style.padding = "0px";
 document.getElementById('bg11').style.backgroundColor = "white";
 document.getElementById('bg22').style.padding = "5px";
 document.getElementById('bg22').style.backgroundColor = "#303030";



}
function changeContentCHK(ids)
{//    this.
var e = document.getElementById("dd1");
var text = e.options[e.selectedIndex].text;
var id = e.options[e.selectedIndex].id;
document.getElementById("hcheck_text").value=text;
document.getElementById("hcheck_id").value=id;
   //alert("CHK called");
   //alert(id);
document.getElementById(ids).innerHTML = "<h2 class=\"welcome\">Choose Inspectors</h2> \n\
<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">           \n\
<tr>              <td height=\"1\" bgcolor=\"#CCCCCC\">            \n\
<div id=\"selectInspector\">\n\
<p><div id=\"all_instectors\"></div> <br /></p>   <p>&nbsp;</p>    \n\
<p><input type=\"button\" name=\"choose Inspector\" id=\"choose Inspector\"  style=\"  width: 155px; \n\
color: whitesmoke;    background-color: maroon;\n\
font-family: tahoma;    font-size:  18px;\n\
margin-left: 236px;\" value=\"Choose Inspector\" onclick=\"changeContentCHI('defineInspectionProcess')\"/>\n\
</p></div></td>            </tr>          </table>";
        getInspectors();
 
 document.getElementById('bg22').style.padding = "0px";
 document.getElementById('bg22').style.backgroundColor = "white";
 document.getElementById('bg33').style.padding = "5px";
 document.getElementById('bg33').style.backgroundColor = "#303030";
 
     
 
}

function changeContentCHI(ids)
{
    
    

   // alert(1);
    ///selSRS = document.getElementById(ids).innerHTML;
  //alert(selSRS);
  //selSRS = document.getElementById(ids).innerHTML;
  save_inspectors();
 //document.getElementById(ids).innerHTML  =  "<h2 class=\"welcome\">Select/import Check List</h2><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td height=\"1\" bgcolor=\"#CCCCCC\"><input type=\"text\" name=\"selectSRS\"/><input type=\"button\" value=\"browse\" />or              <div id=\"dd2\" style=\"display: inline\">              <select   id=\"dd1\">                  <option>Select SRS</option>              </select>              </div>              <input type=\"button\" value=\"Done\" onclick=\"changeContentCHK('defineInspectionProcess')\"   style=\"  width: 57px;    color: whitesmoke;    background-color: maroon;    font-family: tahoma;    font-size:  18px;    margin-top: 100px;    margin-left: 400px;\"></input>              </td>            </tr>          </table>";
document.getElementById(ids).innerHTML = "          <h2 class=\"welcome\">Choose Moderator</h2>         <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">            <tr>              <td height=\"1\" bgcolor=\"#CCCCCC\">              <div id=\"selectInspector\">                <p>   <div id=\"all_moderators\" ></div> </p>                <p>&nbsp;</p>                <p> <input type=\"button\" name=\"choose Moderator\" id=\"choose Moderator\" value=\"Choose Moderator\" style=\"  width: 155px;    color: whitesmoke;    background-color: maroon;    font-family: tahoma;    font-size:  18px;        margin-left: 236px;\"  onclick=\"changeContentCHM('defineInspectionProcess')\"/></p></div></td>            </tr>          </table>";
getModerators();
 document.getElementById('bg33').style.padding = "0px";
 document.getElementById('bg33').style.backgroundColor = "white";
 document.getElementById('bg44').style.padding = "5px";
 document.getElementById('bg44').style.backgroundColor = "#303030";
 

}


function changeContentCHM(ids)
{
    
          
        var length=document.getElementById('moderators_length').value;
 //alert(length);
        var j=100;
        var k=0;
        for(var i=0;i<length;i++)
            {
                var v= "d"+i;
                if(document.getElementById(v).checked==true)
                    {

                        document.getElementById("final").innerHTML+="<input type=\"hidden\" value=\""+document.getElementById(v).name+"\" id=\""+j+"\" name=\"mod_"+j+"\" />";
                        j++;
                        k++;
                        document.getElementById("final").innerHTML+="<input type=\"hidden\" value=\""+document.getElementById(v).value+"\" id=\""+j+"\" name=\"mod_"+j+"\" />";
                        j++;
                        k++;
                        // alert(v);
                    }
            }
     
    
        alert("Inspection created successfully!");
        document.getElementById("final").innerHTML+="<input type=\"hidden\" value=\""+k+"\" id=\"mod_length\" name=\"mod_length\" />";
        document.forms["final"].submit();
    //alert("Congrets! You have successfully created an Inspection");
    //document.getElementById("final").innerHTML+="<input type=\"hidden\" value=\""+j+"\" id=\"ins_length\" name=\"ins_length\" />";
     //document.forms["final"].submit();
    //selSRS = document.getElementById(ids).innerHTML;
  //alert(selSRS);
  //selSRS = document.getElementById(ids).innerHTML;

 //document.getElementBycheckId(ids).innerHTML  =  "<h2 class=\"welcome\">Select/import Check List</h2><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td height=\"1\" bgcolor=\"#CCCCCC\"><input type=\"text\" name=\"selectSRS\"/><input type=\"button\" value=\"browse\" />or              <div id=\"dd2\" style=\"display: inline\">              <select   id=\"dd1\">                  <option>Select SRS</option>              </select>              </div>              <input type=\"button\" value=\"Done\" onclick=\"changeContentCHK('defineInspectionProcess')\"   style=\"  width: 57px;    color: whitesmoke;    background-color: maroon;    font-family: tahoma;    font-size:  18px;    margin-top: 100px;    margin-left: 400px;\"></input>              </td>            </tr>          </table>";
//document.getElementById(ids).innerHTML = "          <h2 class=\"welcome\">Choose Moderator</h2>         <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">            <tr>              <td height=\"1\" bgcolor=\"#CCCCCC\">              <div id=\"selectInspector\">                <p>                  <input type=\"checkbox\" name=\"selectinspector\" id=\"selectinspector\" value=\"inspector 1\" style=\"padding-top:7px; text-align:center;\"/>                  <span style=\"color:#333; text-align:center; margin-bottom:3px;\">&nbsp;&nbsp;&nbsp;inspector 1</span>                  <br />                  <input type=\"checkbox\" name=\"selectinspector\" id=\"selectinspector\" value=\"inspector 1\" style=\"padding-top:7px; text-align:center;\"/>                  <span style=\"color:#333; text-align:center; margin-bottom:3px;\">&nbsp;&nbsp;&nbsp;inspector 1<br />                    </span>                  <input type=\"checkbox\" name=\"selectinspector\" id=\"selectinspector\" value=\"inspector 1\" style=\"padding-top:7px; text-align:center;\"/>                  <span style=\"color:#333; text-align:center; margin-bottom:3px;\">&nbsp;&nbsp;&nbsp;inspector 1<br />                    </span>                  <input type=\"checkbox\" name=\"selectinspector\" id=\"selectinspector\" value=\"inspector 1\" style=\"padding-top:7px; text-align:center;\"/>                  <span style=\"color:#333; text-align:center; margin-bottom:3px;\">&nbsp;&nbsp;&nbsp;inspector 1</span>                  <br />                  <input type=\"checkbox\" name=\"selectinspector\" id=\"selectinspector\" value=\"inspector 1\" style=\"padding-top:7px; text-align:center;\"/>                  <span style=\"color:#333; text-align:center; margin-bottom:3px;\">&nbsp;&nbsp;&nbsp;inspector 1<br />                    </span>                  <input type=\"checkbox\" name=\"selectinspector\" id=\"selectinspector\" value=\"inspector 1\" style=\"padding-top:7px; text-align:center;\"/>                  <span style=\"color:#333; text-align:center; margin-bottom:3px;\">&nbsp;&nbsp;&nbsp;inspector 1</span>                  <br />                  <input type=\"checkbox\" name=\"selectinspector\" id=\"selectinspector\" value=\"inspector 1\" style=\"padding-top:7px; text-align:center;\"/>                  <span style=\"color:#333; text-align:center; margin-bottom:3px;\">&nbsp;&nbsp;&nbsp;inspector 1<br />                    </span>                  <input type=\"checkbox\" name=\"selectinspector\" id=\"selectinspector\" value=\"inspector 1\" style=\"padding-top:7px; text-align:center;\"/>                  <span style=\"color:#333; text-align:center; margin-bottom:3px;\">&nbsp;&nbsp;&nbsp;inspector 1<br />                    </span>                  <input type=\"checkbox\" name=\"selectinspector\" id=\"selectinspector\" value=\"inspector 1\" style=\"padding-top:7px; text-align:center;\"/>                  <span style=\"color:#333; text-align:center; margin-bottom:3px;\">&nbsp;&nbsp;&nbsp;inspector 1<br />                    </span>                  <input type=\"checkbox\" name=\"selectinspector\" id=\"selectinspector\" value=\"inspector 1\" style=\"padding-top:7px; text-align:center;\"/>                  <span style=\"color:#333; text-align:center; margin-bottom:3px;\">&nbsp;&nbsp;&nbsp;inspector 1<br />                    </span>                  <input type=\"checkbox\" name=\"selectinspector\" id=\"selectinspector\" value=\"inspector 1\" style=\"padding-top:7px; text-align:center;\"/>                  <span style=\"color:#333; text-align:center; margin-bottom:3px;\">&nbsp;&nbsp;&nbsp;inspector 1</span>                  <br />                  <input type=\"checkbox\" name=\"selectinspector\" id=\"selectinspector\" value=\"inspector 1\" style=\"padding-top:7px; text-align:center;\"/>                  <span style=\"color:#333; text-align:center; margin-bottom:3px;\">&nbsp;&nbsp;&nbsp;inspector 1</span>                </p>                <p>&nbsp;</p>                <p><input type=\"button\" name=\"choose Inspector\" id=\"choose Inspector\" value=\"Choose Inspector\" onclick=\"changeContentCHM('defineInspectionProcess')\"/></p></div></td>            </tr>          </table>";
}


function getSRSList()
{

	var xmlhttp;


if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari

//alert("Received");

xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5

    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
        document.getElementById('dd2').innerHTML = xmlhttp.responseText;

}
}
//xmlhttp.open("GET","http://localhost/earthplanet/index.php/blog/doitjs?aaa=23",true);
xmlhttp.open("GET","AdminControllers?action=selectSRS",true);
xmlhttp.send();
}
function save_inspectors()
{
  
        var length=document.getElementById('inspectors_length').value;
 //alert(length);
        var j=0;
        for(var i=0;i<length;i++)
            {
                var v= "c"+i;
                if(document.getElementById(v).checked==true)
                    {

                        document.getElementById("final").innerHTML+="<input type=\"hidden\" value=\""+document.getElementById(v).name+"\" id=\""+j+"\" name=\"ins_"+j+"\" />";
                        j++;
                        document.getElementById("final").innerHTML+="<input type=\"hidden\" value=\""+document.getElementById(v).value+"\" id=\""+j+"\" name=\"ins_"+j+"\" />";
                        j++;
                        // alert(v);
                    }
            }
     
     document.getElementById("final").innerHTML+="<input type=\"hidden\" value=\""+j+"\" id=\"ins_length\" name=\"ins_length\" />";
     
   
    /*var x1=document.getElementById("c0").checked;
    var x2=document.getElementById("c1").checked;
    var x3=document.getElementById("c2").checked;
    var x4=document.getElementById("c3").checked;
    var x5=document.getElementById("c4").checked;
    var x6=document.getElementById("c5").checked;
    // var x7=document.getElementById("c7").checked;
    //var x8=document.getElementById("c8").checked;
    //var x9=document.getElementById("c9").checked;
    //var x10=document.getElementById("c10").checked;
    var h=1;
   for(j=0;j<6;j++)
       {
           if(x1=="true")
               {
                   x1=="false";
                   document.getElementById(h).value=document.getElementById("c0").value;
                   h++;
               }
           else if(x2=="true")
               {
                   x2=="false";
                   document.getElementById(h).value=document.getElementById("c1").value;
                   h++;
               }
               else if(x3=="true")
               {
                   x3=="false";
                   document.getElementById(h).value=document.getElementById("c2").value;
                   h++;
               }
               else if(x4=="true")
               {
                   x4=="false";
                   document.getElementById(h).value=document.getElementById("c3").value;
                   h++;
               }
               else if(x5=="true")
               {
                   x5=="false";
                   document.getElementById(h).value=document.getElementById("c4").value;
                   h++;
               }
               else if(x6=="true")
               {
                   x6=="false";
                   document.getElementById(h).value=document.getElementById("c5").value;
                   h++;
               }
       }*/

}
function getModerators()
{

	var xmlhttp;


if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari

//alert("Received");

xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5

    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
        document.getElementById('all_moderators').innerHTML = xmlhttp.responseText;

}
}
//xmlhttp.open("GET","http://localhost/earthplanet/index.php/blog/doitjs?aaa=23",true);
xmlhttp.open("GET","AdminControllers?action=selectModerators",true);
xmlhttp.send();



}
function getInspectors()
{

	var xmlhttp;


if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari

//alert("Received");

xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5

    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
        //alert(xmlhttp.responseText);
        document.getElementById('all_instectors').innerHTML = xmlhttp.responseText;

}
}
//xmlhttp.open("GET","http://localhost/earthplanet/index.php/blog/doitjs?aaa=23",true);
xmlhttp.open("GET","AdminControllers?action=selectInspectors",true);
xmlhttp.send();



}
function getCheckList()
{

	var xmlhttp;


if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari

//alert("Received");

xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5

    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
        document.getElementById('dd2').innerHTML = xmlhttp.responseText;

}
}
//xmlhttp.open("GET","http://localhost/earthplanet/index.php/blog/doitjs?aaa=23",true);
xmlhttp.open("GET","AdminControllers?action=selectCheckList",true);
xmlhttp.send();



}
</script>


<script language="JavaScript" type="text/javascript">
//<!-- works on ie8 not ff.
function SavePath(){
if (document.getElementById('dir').value==''){
  alert('Please Select xml file from the directory');
  return;
}
var str=document.getElementById('dir').value;//.substring(0,document.getElementById('dir').value.lastIndexOf('\\'));

var n=str.substr(str.length-4,4);
if(n==".xml")
    {
        
                                var xmlhttp;


                if (window.XMLHttpRequest)
                {// code for IE7+, Firefox, Chrome, Opera, Safari

                //alert("Received");

                xmlhttp=new XMLHttpRequest();
                }
                else
                {// code for IE6, IE5

                    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
                }
                xmlhttp.onreadystatechange=function()
                {
                if (xmlhttp.readyState==4 && xmlhttp.status==200)
                {
                        if(xmlhttp.responseText==1)
                            alert("SRS parsed and imported successfully");
                        else
                            alert("Your provided SRS can not be parsed");

                }
                
                }
                //xmlhttp.open("GET","http://localhost/earthplanet/index.php/blog/doitjs?aaa=23",true);
                xmlhttp.open("GET","AdminControllers?action=import_srs",true);
                xmlhttp.send();

        
    }
    else
        alert("Please select valid file");
}
//-->
function import_checklist(){
if (document.getElementById('dir1').value==''){
  alert('Please Select xml file from the directory');
  return;
}
var str=document.getElementById('dir1').value;//.substring(0,document.getElementById('dir').value.lastIndexOf('\\'));

var n=str.substr(str.length-4,4);
if(n==".xml")
    {
        
                                var xmlhttp;


                if (window.XMLHttpRequest)
                {// code for IE7+, Firefox, Chrome, Opera, Safari

                //alert("Received");

                xmlhttp=new XMLHttpRequest();
                }
                else
                {// code for IE6, IE5

                    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
                }
                xmlhttp.onreadystatechange=function()
                {
                if (xmlhttp.readyState==4 && xmlhttp.status==200)
                {
                        if(xmlhttp.responseText==1)
                            alert("Checklist parsed and imported successfully");
                        else
                            alert("Your provided Checklist can not be parsed");

                }
                
                }
                //xmlhttp.open("GET","http://localhost/earthplanet/index.php/blog/doitjs?aaa=23",true);
                xmlhttp.open("GET","AdminControllers?action=import_checklist",true);
                xmlhttp.send();

        
    }
    else
        alert("Please select valid file");
}
</script>


</head>

    <body onload="getSRSList()">


    <table width="700" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="50%" height="120"><table border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="42" valign="bottom"><a href="index.jsp" class="logo">Pensieve</a></td>
          </tr>
          <tr>
    <td><a href="index.jsp" class="tag">A SOftware Requirement Inspection Software</a></td>
          </tr>
        </table></td>
        <td valign="bottom" style="padding-bottom:8px;"><table width="60%" border="0" align="right" cellpadding="0" cellspacing="0">
          <tr>
            <td width="15"><img src="images/img04.gif" alt="Home" width="11" height="10" /></td>
            <td><a href="index.jsp" class="topmenu">Admininistrator</a></td>
            <td width="15">&nbsp;</td>
            <td>&nbsp;</td>
            <td width="15">&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="10"></td>
  </tr>
  <tr>
    <td height="40"><table width="70%" border="0" cellspacing="0" cellpadding="0">
      <tr>
       <td width="32%"><a href="index.jsp" class="toplinks">Define Inspection</a></td>
        <td width="47%"><a href="modiActors.jsp" class="toplinks">add/Delete/Update actors </a></td>
        <td width="14%"><a href="MainControler?action=Logout" class="toplinks">Log Out</a></td>
        <td width="1%">&nbsp;</td>
        <td width="6%">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="220" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td class="boxed" valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td class="boxtitle">Define Inspection</td>
              </tr>
              <tr>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td><table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td class="date">&nbsp;</td>
              </tr>
              <tr>

                  <td height="50"><p id="bg11" class="smallred Selected">1) Select/Import SRS</p></td>
                  </tr>
                  <tr>
                    <td class="date">&nbsp;</td>
              </tr>
              <tr>
                  <td height="50"><p  id="bg22" class="smallred ">2)Select/Import check LIst</p></td>
                  </tr>
              <tr>
                <td class="date">&nbsp;</td>
              </tr>
              <tr>
                <td height="50"><p  id="bg33" class="smallred ">3) Choose Inspectors</p></td>

              </tr>
               <tr>
                <td height="50"><p  id="bg44" class="smallred">4)Choose Moderator</p></td>

              </tr>     </table></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td><a href="#" class="smallred"></a></td>
          </tr>
          <tr>

          </tr>
        </table></td>
          <td  id="defineInspectionProcess" valign="top" style="padding-left:12px; text-align:justify; line-height:190%; padding-top:10px;">
          <h2 class="welcome">Select/import SRS</h2>
         <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="1" bgcolor="#CCCCCC">


              <!--input type="file" name="selectSRS" value="browse"/-->
            <input type="file" id="dir" value="dir" >
                <input type="button" value="Import" onclick="javascript:SavePath();" >
              or
              <div id="dd2" style="display: inline">
              <select   id="dd1">
                  <option>Select SRS</option>

              </select>
              </div>

              <input type="button" value="Done" onclick="changeContentSRS('defineInspectionProcess')"   style="  width: 57px;    color: whitesmoke;    background-color: maroon;    font-family: tahoma;    font-size:  18px;    margin-top: 100px;    margin-left: 400px;"></input>
              </td>
            </tr>
          </table>

</td>
      </tr>
    </table></td>
  </tr>
  <tr>
<td height="1" bgcolor="#CCCCCC"></td>
  </tr>
  <tr>
    <td align="center"><p id="legal">All Right Reserved &copy; 2011, Designed by FAST_Pensive</p></td>
  </tr>
</table>
        <form id="final" name="final" action="AdminControllers?action=save_inspector" method="post">
            
            <input type="hidden" value="x" id="hsrs_text" name="hsrs_text"  />
            <input type="hidden" value="x" id="hsrs_id" name="hsrs_id"  />
            <input type="hidden" value="x" id="hcheck_text" name="hcheck_text"  />
            <input type="hidden" value="x" id="hcheck_id" name="hcheck_id"  />
            
        </form>
        
</body>
</html>
